cmake_minimum_required(VERSION 3.16.3)
project(http_server)

set(CMAKE_CXX_STANDARD 11)

# 设置头文件目录
include_directories(resource/headers)

# 添加线程支持
add_compile_options(-pthread)

# 添加所有需要的源文件
add_executable(http_server
    main.cpp
    resource/EventLoop.cpp
    resource/Server.cpp
    resource/Buffer.cpp
    resource/InetAddress.cpp
    resource/Socket.cpp
    resource/util.cpp
    resource/Epoll.cpp
    resource/ThreadPool.cpp
    resource/Acceptor.cpp
    resource/Connection.cpp
    resource/Channel.cpp
)